package inteltimer;

import java.io.File;

import util.FileUtil;

public class Main {

    // counting JNI cost
    public static void main(String[] args) {

        File file = FileUtil.createRecordFile("JNI_cost_time");

        Stopwatch nativeWatch = new NativeStopwatch();

        for (int i = 0; i < 20000; i++) {
            nativeWatch.start();
            long time = nativeWatch.stop();

            FileUtil.writeExecuteTime(file, time);
        }
    }
}
